package job

import (
	"testing"
)

func Test_revert(t *testing.T) {
	type args struct {
		s string
	}
	tests := []struct {
		name string
		args args
		want string
	}{
		{"1", args{""}, ""},
		{"2", args{"a b c"}, "c b a"},
		{"3", args{" a b c "}, " c b a "},
		{"4", args{"a"}, "a"},
		{"5", args{"a  b c"}, "c b  a"},
		{"6", args{"I am a boy"}, "boy a am I"},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := revert(tt.args.s); got != tt.want {
				t.Errorf("%v revert() = %v, want %v", tt.name, got, tt.want)
			}
		})
	}
}
